package cn.com.idmy.auth.oauth;

import com.auth0.jwt.algorithms.Algorithm;
import lombok.Data;

@Data
public class OauthConfig {
    private long refreshTimeout;
    private String refreshSecret;
    private Algorithm refreshAlgorithm;

    public void setRefreshSecret(String secret) {
        refreshSecret = secret;
        refreshAlgorithm = Algorithm.HMAC256(secret);
    }
}
